package com.tegtech.module.sms.log;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tegtech.module.sms.log.domain.SmsLog;
import com.tegtech.module.sms.log.mapper.SmsLogMapper;

@Service
public class SmsLogService extends ServiceImpl<SmsLogMapper, SmsLog> {

	/**
	 * 异步记录SmsLog
	 * @param smsLog
	 */
	@Async("threadPoolTaskExecutor")
	public void record(SmsLog smsLog) {
		baseMapper.insert(smsLog);
	}

}
